package ru.ipccenter.jshell.frontend.shell;

import java.io.IOException;

import ru.ipccenter.jshell.InterprocessStream;

public class InterprocessStreamProxy implements InterprocessStream {

    protected InterprocessStreamInternal ips;
    
    public InterprocessStreamProxy(InterprocessStreamInternal ips) {

        this.ips = ips;
    }
    
    @Override
    public void write() {

        ips.write();
    }

    @Override
    public void write(String file) throws IOException {

        ips.write(file);
    }

    @Override
    public InterprocessStream exec(String... args) {

        return ips.exec(args);
    }
}
